namespace OasisCiq.Xal
{
    using System;
    using System.Linq;
    
    /// <summary>
    /// A list of postal delivery point types
    /// </summary>
    public class PostalDeliveryPointTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[] 
        {
            "GPOBox",
            "POBox",
            "LockedBag",
            "MailStop",
            "PigeonHole",
            "PrivateBag"
        };

        public PostalDeliveryPointTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}